package com.handpay.zztong.hp.base.model.banklist;

import com.handpay.zztong.hp.log.HPLog;

import java.io.Serializable;

public class BankProvince implements Serializable {
    private static final long serialVersionUID = -1122576365916220535L;
    private String mBankProvinceId;
    private String mBankProvinceName = null;

    public String getBankProvinceId() {
        return mBankProvinceId;
    }

    public void setBankProvinceId(String mBankProvinceId) {
        this.mBankProvinceId = mBankProvinceId;
    }

    public String getBankProvinceName() {
        return mBankProvinceName;
    }

    public void setBankProvinceName(String mBankProvinceName) {
        this.mBankProvinceName = mBankProvinceName;
    }

    public static BankProvince generateBank(BankProvinceListBean.ListBean bankProvincebean) {
        BankProvince bankProvince = new BankProvince();
        try {
            bankProvince.setBankProvinceName(bankProvincebean.getProvinceName());
            bankProvince.setBankProvinceId(bankProvincebean.getProvinceId());
            return bankProvince;
        } catch (Exception e) {
            HPLog.e("BankProvince", "", e);
            return null;
        }
    }

}
